<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table width="80%" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td>编号${tt}</td>
    <td>姓名</td>
    <td>地址</td>
    <td>删除</td>
    <td>编辑</td>
  </tr>
  <c:forEach items="${testList }" var="ls">
  <tr>
    <td>${ls.id}</td>
    <td>${ls.name}</td>
    <td>${ls.addr}</td>
    <td><a href="delete?id=${ls.id }">删除</a></td>
    <td><a href="queryOneById?id=${ls.id }">编辑</a></td>
  </tr>
  </c:forEach>
  
</table>
	<form action="add">
		姓名:<input type="text" name="name"/><br/>
		地址:<input type="text" name="addr"/><br/>
		<input type="submit" value="添加"/>
	</form>

<%-- 一共：${lwCount} 人 --%>

</body>
</html>